<%-- 
    Document   : manual_sms_info_form
    Created on : Sep 19, 2013, 11:55:59 AM
    Author     : fikri
--%>

<%@ include file="/WEB-INF/jsp/include/page_header.jspf" %>
<%@page contentType="text/html" pageEncoding="windows-1252"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <title>Penghantaran sms secara manual</title>
        <script type="text/javascript">
            $(document).ready( function() {
               
                $('#trh_hantar').change( function() {
                    $('#results').hide();
                });
            });
        </script>
    </head>
    <body>
        <s:messages/>
        <s:errors/> 
        <br/>
        <s:form beanclass="th.stripes.action.AdminAction">
            <div id="content">
                <div id="logo">
                    <span>
                        <img src="${pageContext.request.contextPath}/images/img/ribbon.png"/>               
                    </span>
                </div>
                <h3>
                    Status Penghantaran SMS.
                </h3>                
                <p>
                    <label>Tarikh :</label>
                    <s:text name="tarikhPenghantaran" class="required date" id="trh_hantar"/>
                </p>               
                <p>
                    <label>&nbsp;</label>
                    <s:submit name="searchSms" value="Semak" class="button green button_blockUI"/>                    
                </p>
            </div>
            <div id="content">
                <p id="results">
                    
                    <c:if test="${actionBean.senaraiSms ne null}">
                        Terdapat ${fn:length(actionBean.senaraiSms)} rekod tanpa rekod penghantaran.
                    </c:if>                   
                    
                    
                    <c:if test="${fn:length(actionBean.senaraiSms) > 0}">
                            <s:submit name="getSmsInfo" value="Dapatkan Status Penghantaran." class="button green button_blockUI"/>     
                    </c:if>
                </p>
            </div>
        </s:form>
    </body>
</html>